package com.l024.loanthief;

import android.app.Application;
import android.content.Intent;

import androidx.multidex.MultiDex;

import com.l024.loanthief.help.AppHelp;
import com.l024.loanthief.service.ChatClient;
import com.l024.loanthief.service.ChatService;
import com.l024.loanthief.service.ScanService;

/**
 * @author wu_ming_zhi_bei
 * @date 2021/1/14 11:08
 * @Notes
 */
public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        MultiDex.install(this);
        AppHelp.getInstance().init(this);
        //启动socket服务
        startService(new Intent(this, ChatService.class));
        //启动聊天服务
        startService(new Intent(this, ChatClient.class));
        //启动局域网扫描
        startService(new Intent(this, ScanService.class));

    }
}
